package com.qingcloud.fexecutor.base.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

public class WebPageDataParam implements Serializable {

    @Data
    @ApiModel("添加或修改数据参数")
    public static class AddParam implements Serializable {

        @ApiModelProperty(value = "页面ID")
        private Integer pageId;

        @ApiModelProperty(value = "页面提交的参数JSON")
        private String json;

    }

    @Data
    @ApiModel("分页查询参数")
    public static class PageParam implements Serializable {

        @ApiModelProperty(value = "页面ID")
        private Integer pageId;

        @ApiModelProperty(value = "访问类型 1-开发预览 2-发布使用")
        private Integer viewType = 1;

        @ApiModelProperty(value = "资源编码")
        private String resourceCode;

        @ApiModelProperty(value = "第几页，从1开始")
        private Integer page;

        @ApiModelProperty(value = "数据源类型")
        private Integer datasourceType;

        @ApiModelProperty(value = "每页查询数量")
        private Integer pageSize;

        @ApiModelProperty(value = "页面提交的参数JSON")
        private String json;

        @ApiModelProperty(value = "查询sql语句")
        private String sql;

    }

}
